/**
 * 作者: hxl
 * 日期: 2025-03-14 16:15:14
 * 备注: 限时充值配置表
 */
package com.motu.monstercity.server.game.commondata.act;

import io.vertx.core.json.JsonObject;

public class ActRechargeModel {
    protected int id; // id
    protected int rechargeId; // 模版id
    protected int type; // 类型
    protected String parameter; // 参数

    public ActRechargeModel() {
    }

    public ActRechargeModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        rechargeId = obj.containsKey("recharge_id") ? obj.getInteger("recharge_id") : 0;
        type = obj.containsKey("type") ? obj.getInteger("type") : 0;
        parameter = obj.containsKey("parameter") ? obj.getString("parameter") : "";
    }

    public int getId() {
        return id;
    }

    public int getRechargeId() {
        return rechargeId;
    }

    public int getType() {
        return type;
    }

    public String getParameter() {
        return parameter;
    }

}
